package com.itsu.interfaces.service;

import com.itsu.interfaces.entity.PublishState;
import org.bson.types.ObjectId;

import java.util.List;

public interface PublishStateService {

    void save(PublishState publishState);

    PublishState findByPublishId(String publishId);

    List<PublishState> findByUseId(Long userId);

    List<PublishState> findByPublishIds(List<String> publishIds);

    int updatePublishStateByPublishId(PublishState publishState);

    int updatePublishStateByPublishIds(List<String> publishIds, String state);

}
